#! /usr/bin/env python
# -*- coding: utf-8 -*-

# *************************************************************
#     Filename @  apply.py
#       Author @  Huoty
#  Create date @  2015-06-10 13:30:51
#  Description @  
# *************************************************************



# Script starts from here

t=('a','b')
d={'A':'AB','B':'Ab'}

def ab(a,b,A,B):
    print a,b,A,B

def main(*d,**k):
    print d,k

if __name__ == '__main__':
    #使用apply函数
    apply(main,(2,3))
    apply(main,(2,3),{'a':'5','b':'6'})
    apply(main,(),{'a':'5','b':'6'})

    #普通的函数传参
    main(2,3,a=4,b=5)
    ab(*t,**d)
